<?php

namespace App\Http\Controllers\Api\V1;

use App\Enums\ResponseCode;
use App\Http\Controllers\Api\AbstractApiController;
use App\Services\District\DistrictService;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;

class DistrictController  extends AbstractApiController
{
    public function index()
    {
        $result = DistrictService::listAll();
        return $this->success(trans("success"),ResponseCode::OK,$result);
    }
}
